<!DOCTYPE html>
<html>
<head th:include="common/header_css::header('霸王餐小程序后台管理-商品信息','%mfile%datepicker%summernote')"></head>
<!--<head th:include="common/header_css::header('霸王餐小程序后台管理-实体店商家地址，需要满足实体营业执照+店面+独立小程序')"></head>-->
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div th:replace="common/toolbar::toolbar('实体店商家地址，需要满足实体营业执照+店面+独立小程序管理')"></div>
        <div th:replace="common/search::search('%add%sjtype')"></div>
    </div>
</div>

<!--添加Store模态框-->
<div id="modal-add-form" class="modal fade" aria-hidden="false">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">实体店商家地址，需要满足实体营业执照+店面+独立小程序添加</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form id="aform" method="post" class="form-horizontal" action="add"
                                      onsubmit="return checkAdd()">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">名称*
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="name" required type="text"
                                                           maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">商家类目*</label>
                                                <div class="col-sm-8">
                                                    <select class="form-control" name="type">
                                                        <option th:each="bus,userStat:${business}"
                                                                th:value="${bus.id}" th:text="${bus.name}"></option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">门头照片</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilepic" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">店铺商标LOGO
                                                </label>
                                                <div class="col-sm-10">
                                                    <input id="mfilelogo" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">联系人</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="linkman"
                                                           type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">联系电话*
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="phone" required type="number"
                                                           phone maxlength="11"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">经度</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="longitude"
                                                           type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">纬度</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="latitude" type="number"
                                                           phone maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">省</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="province" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">市</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="city" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">区</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="district" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">商圈</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="areaName" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">地址*
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="address"
                                                           required type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商家特色
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="characteristic"
                                                           type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">营业时间</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="openHour"
                                                           type="text" maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">微信号</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="wxno"
                                                           type="text" maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">主推商品</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="zhutui" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">是否连锁</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" class="js-switch" name="isLiansuo" value="1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">店面价</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="price" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">促销价</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="pjprice" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">是否外卖</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" class="js-switch" name="isWaimai" value="1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">送达时间</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="songda" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">起送费</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="qisongfee" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">配送费</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="peisongfee" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">备用电话
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="phone2" type="number"
                                                           maxlength="11"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">启用状态</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" class="js-switch" name="state" value="1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">支持WIFI</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" class="js-switch" name="isWifi" value="1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">支持微信支付</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" class="js-switch" name="isWxpay" value="1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">支持支付宝支付</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" class="js-switch" name="isZfbpay" value="1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">支持停车位</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" class="js-switch" name="isParking" value="1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">消费返积分倍率</label>
                                                <div class="col-sm-8">
                                                    <select class="form-control" name="jffanbi">
                                                        <option value="0.1">0.1</option>
                                                        <option value="0.5">0.5</option>
                                                        <option value="1" selected>1</option>
                                                        <option value="1.5">1.5</option>
                                                        <option value="2">2</option>
                                                        <option value="2.5">2.5</option>
                                                        <option value="3">3</option>
                                                        <option value="4">4</option>
                                                        <option value="5">5</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">联盟ID</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="leagueid" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商家须知</label>
                                                <div class="col-sm-10">
                                                    <textarea class="form-control" name="xuzhi"
                                                              maxlength="1000"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商家介绍</label>
                                                <div class="col-sm-10">
                                                    <textarea class="form-control" name="info" maxlength="1000"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">餐厅介绍</label>
                                                <div class="col-sm-15">
                                                    <textarea class="form-control" name="storeIntroduce" maxlength="1000"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">营业执照</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilezhizhao" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">行业资质许可证</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilexukezheng" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">店铺轮播图(拖动图片可以调整展示顺序)*
                                                </label>
                                                <div class="col-sm-10">
                                                    <div id="sortphotos" class="tile__list"></div>
                                                    <input id="mfilephotos" name="mfile" type="file" multiple class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">店铺详情图(拖动图片可以调整展示顺序)*
                                                </label>
                                                <div class="col-sm-10">
                                                    <div id="sortxiangqing" class="tile__list"></div>
                                                    <input id="mfilexiangqing" name="mfile" type="file" multiple class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">资质证书(拖动图片可以调整展示顺序)*
                                                </label>
                                                <div class="col-sm-10">
                                                    <div id="sortzhengshu" class="tile__list"></div>
                                                    <input id="mfilezhengshu" name="mfile" type="file" multiple class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">公众号二维码</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilegzhimg" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">客服二维码</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilekefuimg" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white"
                                                    href="#modal-add-form">取消
                                            </button>
                                        </div>
                                    </div>
                                    <input id="hidlogo" name="logo" type="hidden" value="" />
                                    <input id="hidpic" name="pic" type="hidden" value="" />
                                    <input id="hidzhizhao" name="zhizhao" type="hidden" value="" />
                                    <input id="hidphotos" name="photos" type="hidden" value="" required="required"/>
                                    <input id="hidxiangqing" name="xiangqing" type="hidden" value="" required="required"/>
                                    <input id="hidxukezheng" name="xukezheng" type="hidden" value="" />
                                    <input id="hidzhengshu" name="zhengshu" type="hidden" value="" />
                                    <input id="hidgzhimg" name="gzhimg" type="hidden" value="" />
                                    <input id="hidkefuimg" name="kefuimg" type="hidden" value="" />
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改Store模态框-->
<div id="modal-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">实体店商家地址，需要满足实体营业执照+店面+独立小程序修改</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form id="mform" method="post" class="form-horizontal" action="modify"
                                      onsubmit="return checkModify()">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">名称*
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="name" name="name"
                                                           required
                                                           type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">商家类目*</label>
                                                <div class="col-sm-8">
                                                    <select class="form-control" name="type" id="type">
                                                        <option th:each="bus,userStat:${business}"
                                                                th:value="${bus.id}" th:text="${bus.name}"></option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">门头照片</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilepic2" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">店铺商标LOGO
                                                </label>
                                                <div class="col-sm-10">
                                                    <input id="mfilelogo2" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">联系人</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="linkman" id="linkman"
                                                           type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">联系电话*
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="phone" id="phone"
                                                           required type="number" maxlength="11"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">经度</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="longitude" id="longitude"
                                                           type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">纬度</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="latitude" id="latitude"
                                                           type="number" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">省</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="province" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">市</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="city" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">区</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="district" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">商圈</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="areaName" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">营业时间</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="openHour" id="openHour"
                                                           type="text" maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">微信号</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="wxno" id="wxno"
                                                           type="text" maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">主推商品</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="zhutui" name="zhutui" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">是否连锁</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" id="isLiansuo" name="isLiansuo" value="1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">店面价</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="price" name="price" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">促销价</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="pjprice" name="pjprice" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">是否外卖</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" id="isWaimai" name="isWaimai" value="1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">送达时间</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="songda" name="songda" type="text"
                                                           maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">起送费</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="qisongfee" name="qisongfee"
                                                           type="text" maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">配送费</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="peisongfee" name="peisongfee"
                                                           type="text" maxlength="50"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">地址*
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="address" id="address"
                                                           required type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商家特色
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="characteristic"
                                                           id="characteristic" type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">备用电话
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="phone2" name="phone2" type="number"
                                                           maxlength="11"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">启用状态</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" id="state" name="state" value="1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">支持WIFI</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" id="isWifi" name="isWifi" value="1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">支持微信支付</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" id="isWxpay" name="isWxpay" value="1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">支持支付宝支付</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" id="isZfbpay" name="isZfbpay" value="1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">支持停车位</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" id="isParking" name="isParking" value="1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">消费返积分倍率</label>
                                                <div class="col-sm-8">
                                                    <select class="form-control" name="jffanbi" id="jffanbi">
                                                        <option value="0.1">0.1</option>
                                                        <option value="0.5">0.5</option>
                                                        <option value="1" selected>1</option>
                                                        <option value="1.5">1.5</option>
                                                        <option value="2">2</option>
                                                        <option value="2.5">2.5</option>
                                                        <option value="3">3</option>
                                                        <option value="4">4</option>
                                                        <option value="5">5</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">联盟ID</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="leagueid" id="leagueid" type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商家须知</label>
                                                <div class="col-sm-10">
                                                    <textarea class="form-control" name="xuzhi" id="xuzhi"
                                                              maxlength="1000"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商家介绍
                                                </label>
                                                <div class="col-sm-10">
                                                    <textarea class="form-control" id="info" name="info" maxlength="1000"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">餐厅介绍
                                                </label>
                                                <div class="col-sm-10">
                                                    <textarea class="form-control" id="storeIntroduce" name="info" maxlength="1000"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">营业执照</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilezhizhao2" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">行业资质许可证</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilexukezheng2" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">店铺轮播图(拖动图片可以调整展示顺序)*
                                                </label>
                                                <div class="col-sm-10">
                                                    <div id="sortphotos2" class="tile__list"></div>
                                                    <input id="mfilephotos2" name="mfile" type="file" multiple class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">店铺详情图(拖动图片可以调整展示顺序)*
                                                </label>
                                                <div class="col-sm-10">
                                                    <div id="sortxiangqing2" class="tile__list"></div>
                                                    <input id="mfilexiangqing2" name="mfile" type="file" multiple class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">资质证书(拖动图片可以调整展示顺序)*
                                                </label>
                                                <div class="col-sm-10">
                                                    <div id="sortzhengshu2" class="tile__list"></div>
                                                    <input id="mfilezhengshu2" name="mfile" type="file" multiple class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">公众号二维码</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilegzhimg2" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">客服二维码</label>
                                                <div class="col-sm-10">
                                                    <input id="mfilekefuimg2" name="mfile" type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white"
                                                    href="#modal-form">取消
                                            </button>
                                        </div>
                                    </div>
                                    <input id="hidlogo2" name="logo" type="hidden" value=""/>
                                    <input id="hidpic2" name="pic" type="hidden" value=""/>
                                    <input id="hidzhizhao2" name="zhizhao" type="hidden" value=""/>
                                    <input id="hidphotos2" name="photos" type="hidden" value="" required="required"/>
                                    <input id="hidphotos2bak" type="hidden" value="" required="required"/>
                                    <input id="hidxiangqing2" name="xiangqing" type="hidden" value="" required="required"/>
                                    <input id="hidxiangqing2bak" type="hidden" value="" required="required"/>
                                    <input id="hidzhengshu2" name="zhengshu" type="hidden" value="" />
                                    <input id="hidzhengshu2bak" type="hidden" value="" />
                                    <input id="hidxukezheng2" name="xukezheng" type="hidden" value="" />
                                    <input id="id" name="id" type="hidden" value=""/>
                                    <input id="hidgzhimg2" name="gzhimg" type="hidden" value=""/>
                                    <input id="hidkefuimg2" name="kefuimg" type="hidden" value="" />
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--添加兑换商品模态框-->
<div id="modal-agoods-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">添加兑换商品</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form  id="agform" method="post" class="form-horizontal" action="/admin/store/addgoods"
                                      onsubmit="return checkAgoodsModify()">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商品名*
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="name" required type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">商品分类*
                                                </label>
                                                <div class="col-sm-8">
                                                    <!--<select onchange="gcsel(this.value)" class="form-control select2"-->
                                                            <!--name="cid">-->
                                                        <!--<option th:each="c:${gclist}" th:value="${c.id}" th:text="${c.name}"></option>-->
                                                    <!--</select>-->
                                                    <select class="form-control" name="hytype">
                                                        <option th:each="bus,userStat:${business}"
                                                                th:value="${bus.id}" th:text="${bus.name}"></option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">成本价</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="minPrice" type="number"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">商品原价*
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="price" required type="number"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">实际售价*
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="saleprice" required type="number"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">兑换积分</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" name="jifen" type="number"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">限购数量</label>
                                                <div class="col-sm-8">
                                                    <div class="input-group m-b">
                                                        <input class="form-control" id="xiangou" name="xiangou" type="number" value="0"/><span class="input-group-addon">0表示不限购</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">产品类型*
                                                </label>
                                                <div class="col-sm-8">
                                                    <select class="form-control" name="gtype">
                                                        <option value="1">实物产品</option>
                                                        <option value="2">虚拟产品</option>
                                                        <option value="3">到店服务</option>
                                                        <option value="4">上门服务</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">促销总库存数</label>
                                                <div class="col-sm-8">
                                                    <div class="input-group m-b">
                                                        <input class="form-control" name="stores" type="number" value="-1"/><span class="input-group-addon">-1表示库存数无限制</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商品卖点</label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="characteristic" type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--<div class="row" style="display: none">-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否支持会员余额交易</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isMember" value="1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否支持积分抵扣交易</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isJifen" value="1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                    <!--<div class="row" style="display: none">-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否支持优惠券交易</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isCoupon" value="1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否推荐商品</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isRecommend"  value="-1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                    <!--<div class="row" style="display: none">-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否热卖</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isHot" value="-1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">最大可扣除积分比例</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<select class="form-control" name="maxUseJifen">-->
                                                        <!--<option value="0">0</option>-->
                                                        <!--<option value="0.1">10%</option>-->
                                                        <!--<option value="0.2" selected>20%</option>-->
                                                        <!--<option value="0.3">30%</option>-->
                                                        <!--<option value="0.4">40%</option>-->
                                                        <!--<option value="0.5">50%</option>-->
                                                        <!--<option value="0.6">60%</option>-->
                                                        <!--<option value="0.7">70%</option>-->
                                                        <!--<option value="0.8">80%</option>-->
                                                        <!--<option value="0.9">90%</option>-->
                                                        <!--<option value="1">100%</option>-->
                                                    <!--</select>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商品轮播图</label>
                                                <div class="col-sm-10">
                                                    <input id="gmfile" name="mfile" multiple type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">文字简介</label>
                                                <div class="col-sm-10">
                                                    <textarea name="jieshao" class="form-control" maxlength="1000"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商品详情</label>
                                                <div class="col-sm-10">
                                                    <input id="mfileinfo" name="mfile" multiple type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-agoods-form">取消
                                            </button>
                                        </div>
                                    </div>
                                    <input id="hidgphotos" name="photos" type="hidden" required value="" />
                                    <input id="hidinfo" name="info" type="hidden" required value="" />
                                    <input id="hidsid" name="sid" type="hidden" value=""/>
                                    <input  name="maxUseJifen" type="hidden" value="1"/>
                                    <input  name="isJifen" type="hidden" value="1"/>
                                    <input  name="isMember" type="hidden" value="1"/>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改Goods模态框-->
<div id="modal-mgoods-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">修改商品</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form id="mgform" method="post" class="form-horizontal" action="/admin/store/modifygoods"
                                      onsubmit="return checkMgoodsModify()">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商品名*
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" id="gname" name="name"
                                                           required type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">商品分类*
                                                </label>
                                                <div class="col-sm-8">
                                                    <select class="form-control" id="type2" name="hytype">
                                                        <option th:each="bus,userStat:${business}"
                                                                th:value="${bus.id}" th:text="${bus.name}"></option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">成本价</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="minPrice" name="minPrice"
                                                           type="number"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">商品原价*
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="spprice" name="price"
                                                           required type="number"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">实际售价*
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="spsaleprice" name="saleprice"
                                                           required type="number"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">兑换积分</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="jifen" name="jifen" type="number"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">限对换数量</label>
                                                <div class="col-sm-8">
                                                    <div class="input-group m-b">
                                                        <input class="form-control" id="xiangou2" name="xiangou" type="number" value="0"/><span class="input-group-addon">0表示不限购</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">产品类型*
                                                </label>
                                                <div class="col-sm-8">
                                                    <select class="form-control" name="gtype" id="gtype">
                                                        <option value="1">实物产品</option>
                                                        <option value="2">虚拟产品</option>
                                                        <option value="3">到店服务</option>
                                                        <option value="4">上门服务</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">促销总库存数</label>
                                                <div class="col-sm-8">
                                                    <div class="input-group m-b">
                                                        <input class="form-control" id="stores" name="stores" type="number" value="-1"/><span class="input-group-addon">-1表示库存数无限制</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商品卖点</label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" id="spcharacteristic" name="characteristic"
                                                           type="text" maxlength="255"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--<div class="row" style="display: none">-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否支持会员余额交易</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isMember" value="1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否支持积分抵扣交易</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isJifen" value="1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                    <!--<div class="row" style="display: none">-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否支持优惠券交易</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isCoupon" value="1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否推荐商品</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isRecommend"  value="-1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                    <!--<div class="row" style="display: none">-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">是否热卖</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<input type="checkbox" class="js-switch" name="isHot" value="-1">-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                        <!--<div class="col-md-6">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-4 control-label">最大可扣除积分比例</label>-->
                                                <!--<div class="col-sm-8">-->
                                                    <!--<select class="form-control" name="maxUseJifen">-->
                                                        <!--<option value="0">0</option>-->
                                                        <!--<option value="0.1">10%</option>-->
                                                        <!--<option value="0.2" selected>20%</option>-->
                                                        <!--<option value="0.3">30%</option>-->
                                                        <!--<option value="0.4">40%</option>-->
                                                        <!--<option value="0.5">50%</option>-->
                                                        <!--<option value="0.6">60%</option>-->
                                                        <!--<option value="0.7">70%</option>-->
                                                        <!--<option value="0.8">80%</option>-->
                                                        <!--<option value="0.9">90%</option>-->
                                                        <!--<option value="1">100%</option>-->
                                                    <!--</select>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商品轮播图</label>
                                                <div class="col-sm-10">
                                                    <input id="mfile2" name="mfile" multiple type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">文字简介</label>
                                                <div class="col-sm-10">
                                                    <textarea id="jieshao" name="jieshao" class="form-control" maxlength="1000"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">商品详情</label>
                                                <div class="col-sm-10">
                                                    <img id="previewInfo" src='' class='file-preview-image' alt='' title='' style="width: 100px;height: 100px;"/>
                                                    <input id="mfileinfo2" name="mfile" multiple type="file" class="file"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white"
                                                    href="#modal-mgoods-form">取消
                                            </button>
                                        </div>
                                    </div>
                                    <input id="hidgphotos2" name="photos" type="hidden" value=""/>
                                    <input id="hidinfo2" name="info" type="hidden"  />
                                    <input id="hidsid2" name="sid" type="hidden" value=""/>
                                    <input  name="maxUseJifen" type="hidden" value="1"/>
                                    <input  name="isJifen" type="hidden" value="1"/>
                                    <input  name="isMember" type="hidden" value="1"/>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改Goods模态框-->
<div id="modal-setauth-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">认证门诊</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form id="authform" method="post" class="form-horizontal" action="setauth"
                                      onsubmit="return true">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">驿站授权编号
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="yzno" name="yzno"
                                                           type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">是否职工驿站机构
                                                </label>
                                                <div class="col-sm-10">
                                                    <select class="form-control" name="yzstatus" id="yzstatus">
                                                        <option value="-1">审核拒绝</option>
                                                        <option value="0">未审核</option>
                                                        <option value="1">审核中</option>
                                                        <option value="2">审核通过</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">干细胞授权编号
                                                </label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="gxbno" name="gxbno"
                                                           type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">是否干细胞采集
                                                </label>
                                                <div class="col-sm-10">
                                                    <select class="form-control" name="isYikatong" id="isYikatong">
                                                        <option value="1">认证通过</option>
                                                        <option value="0">不通过</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">华口云授权编号</label>
                                                <div class="col-sm-8">
                                                    <input class="form-control" id="authno" name="authno"
                                                           type="text" maxlength="30"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">是否品牌门诊
                                                </label>
                                                <div class="col-sm-10">
                                                    <select class="form-control" name="isDulizs" id="isDulizs">
                                                        <option value="1">认证通过</option>
                                                        <option value="0">不通过</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white"
                                                    href="#modal-setauth-form">取消
                                            </button>
                                        </div>
                                    </div>
                                    <input id="hidid" name="id" type="hidden" value=""/>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<input id="hidIsDuihuan" name="isDuihuan" type="hidden" th:value="${isDuihuan}"/>
<input id="hidversion" type="hidden" th:value="${version}"/>
<div th:include="common/footer_js::footer"></div>
<script>

    //    //图片上传
    //    function sendFile(file, editor, $editable) {
    //
    //        var filename = false;
    //        try {
    //            filename = file['name'];
    //        } catch (e) {
    //            filename = false;
    //        }
    //        if (!filename) {
    //            $(".note-alarm").remove();
    //        }
    //        //以上防止在图片在编辑器内拖拽引发第二次上传导致的提示错误
    //        data = new FormData();
    //        data.append("mfile", file);
    //        data.append("key", filename); //唯一性参数
    //
    //        $.ajax({
    //            data: data,
    //            type: "POST",
    //            url: "/upload/file?type=sn_Store",
    //            cache: false,
    //            contentType: false,
    //            processData: false,
    //            success: function (e) {
    //                console.log(e)
    //                if (e && e.code != 0) {
    //                    swal({title: "上传失败", text: "", type: "error"})
    //                    return;
    //                } else {
    //                    swal({title: "上传成功", text: "", type: "success"})
    //                }
    //                editor.insertImage($editable, e.data);
    //                setTimeout(function () {
    //                    $(".note-alarm").remove();
    //                }, 5000);
    //            },
    //            error: function () {
    //                swal({title: "上传失败", text: "", type: "error"})
    //                return;
    //            }
    //        });
    //    }

    //    $(document).ready(function () {
    //        $(".summernote").summernote({
    //            lang: "zh-CN",
    //            width: 535,
    //            height: 260,
    //            dialogsInBody: true,
    //            onImageUpload: function (files, editor, $editable) {
    //                sendFile(files[0], editor, $editable);
    //            }
    //        })
    //    });
</script>
<script src="/js/admin/store.js"></script>
<script th:inline="javascript">
    var version =[[${version}]];
    if(version!=4){
        $("#sjtype").hide()
    }
</script>
</body>
</html>
